package com.like.miaosha.util;

import org.hibernate.validator.constraints.Length;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ValidatorUtil {
    private static final Pattern mobilePattern=Pattern.compile("1\\d{10}");
    public static boolean isMobile(String src){
        if(src==null||src.length()==0)
            return false;
        Matcher m=mobilePattern.matcher(src);
        return m.matches();
    }

}
